home *** CD-ROM | disk | FTP | other *** search
/ More SimCities / More SimCities (1997).iso / sc / tools / simtools / simcity.fmt < prev    next >
Text File  |  1997-06-17  |  4KB  |  127 lines

  1.                  SimCity File Format Description 
  2.  
  3. This document describes the city data file format for SimCity. This
  4. description is valid for the IBM, Macintosh and Amiga versions of
  5. SimCity.
  6.  
  7. Major Data Structures    size (bytes)
  8.      name                     128
  9.      FinderInfo               480
  10.      ResHis                   480
  11.      ComHis                   480
  12.      IndHis                   480
  13.      CrimeHis                 480
  14.      PolluteHis               480
  15.      CashFlowHis              240
  16.      MiscVar                24000
  17.      Map                    27248
  18.  
  19. Total FinderInfo - This part of the file is only used by the Macintosh.
  20. But the IBM and Amiga city files also create this in every file so cities 
  21. can be moved to the Mac easily.
  22.  
  23. ResHis - This is the data seen in the Residential population line graph.
  24. The first 120 integers represent the 10 year data (most recent first)
  25. and the second 120 integers represent the 120 year data. The next 5
  26. structures follow this format.
  27.  
  28. ComHis - The commercial population data.
  29.  
  30. IndHis - The industrial population data.
  31.  
  32. CrimeHis - The average crime level data. (scaled 0..255)
  33.  
  34. PolluteHis - The average pollution level data. (scaled 0..255)
  35.  
  36. CashFlowHis - The CashFlow data. (scaled 0..255, 128 is 0, <128 is negative 
  37. CF, >128 is positive CF)
  38.  
  39. MiscVar - This is an array of integers used to store various things.
  40.     MiscVar[1] - External Market Size.
  41.     MiscVar[2] - Residential Population.
  42.     MiscVar[3] - Commercial Population.
  43.     MiscVar[4] - Industrial Population.
  44.     MiscVar[5] - Residential Valve.
  45.     MiscVar[6] - Commercial Valve.
  46.     MiscVar[7] - Industrial Valve.
  47.     MiscVar[8&9] - City Time. (current year = City Time/48 +1900)
  48.     MiscVar[10] - CrimeRamp (used to smooth graphs)
  49.     MiscVar[11] - PolluteRamp (used to smooth graphs)
  50.     MiscVar[12] - LandValue Average.
  51.     MiscVar[13] - Crime Average.
  52.     MiscVar[14] - Pollution Average.
  53.     MiscVar[15] - Game Level.
  54.     MiscVar[16] - City Class. (village,town,city, etc)
  55.     MiscVar[17] - City Score.
  56.     MiscVar[50&51] - Total Funds (long value)
  57.     MiscVar[52] - Flag for auto-bulldozer
  58.     MiscVar[53] - Flag for auto-budget
  59.     MiscVar[54] - Flag for auto-goto
  60.     MiscVar[55] - Flag for sound On/Off
  61.     MiscVar[56] - City Tax Rate
  62.     MiscVar[57] - Simulation Speed
  63.     MiscVar[58&59] - Police budget.
  64.     MiscVar[60&61] - Fire budget.
  65.     MiscVar[62&63] - Road budget.
  66.  
  67. Map - This is the city map. The map is 120 horiz. X 100 vert., each tile
  68. represented by an integer. The lower 10 bits of the integer hold the index 
  69.  for the tile, the upper 6 are "attributes" for that tile.
  70.  
  71. TILE ATTRIBUTES
  72.     Bits[0-9] - Tile index #. (0-1023)
  73.     Bit[10] - Is this a zone center tile?
  74.     Bit[11] - Is this tile animated?
  75.     Bit[12] - Is this tile bulldozable?
  76.     Bit[13] - Can this tile burn?
  77.     Bit[14] - Can this tile conduct power?
  78.     Bit[15] - Is this tile currently powered?
  79.  
  80. TILE INDEX NUMBERS
  81.     #0 - Clear terrain
  82.     #2 - All water
  83.     #4 - River channel
  84.     #5-20 - River edges
  85.     #21-36 - Tree edges
  86.     #37 - All trees
  87.     #40-43 - Parks
  88.     #44-47 - Rubble 
  89.     #48-51 - Flood
  90.     #52 - Radiation
  91.     #56-63 - Fire
  92.     #64-78 - Roads (no traffic)
  93.     #80-142 - Roads (light traffic)
  94.     #144-206 - Roads (heavy traffic)
  95.     #208-222 - Power lines
  96.     #224-238 - Transit lines
  97.     #244 - Low density and empty Residential zone center
  98.     #249-260 - Houses
  99.     #265,274,283,292 - Res. zone centers (low value) from low to high
  100.     density
  101.     #301,310,319,328 - Res. zone centers (mid value) 
  102.     #337,346,355,364 - Res. zone centers (upper value) 
  103.         #373,382,391,400 - Res. zone centers (high value) 
  104.     #409 - Hospital center tile.
  105.     #418 - Church center tile.
  106.     #427 - Commercial empty zone center
  107.     #436,445,454,463,472 - Com. zone centers (low value) 436-lowest
  108.     density
  109.     #481,490,499,508,517 - Com. zone centers (mid value)
  110.     #526,535,544,553,562 - Com. zone centers (upper value)
  111.     #571,580,589,598,607 - Com. zone centers (high value)
  112.     #616 - Industrial empty zone center
  113.     #625,634,643,652 - Ind. zone centers (low value)
  114.     #661,670,679,688 - Ind. zone centers (high value)
  115.     #698 - Port center tile.
  116.     #716 - Airport center tile.
  117.     #750 - Coal powerplant center tile.
  118.     #765 - Fire station center tile.
  119.     #774 - Police station center tile.
  120.     #784 - Stadium (empty) center tile.
  121.     #800 - Stadium (full) center tile.
  122.     #816 - Nuclear powerplant center tile.
  123.     #828-831 - open horiz. bridge
  124.         #832-839 - Radar dish
  125.     #840-843 - Park fountain
  126.     #948-951 - open vert. bridge
  127.